#!/bin/bash

cd /home/scripts/mail

sed -n  $(($RANDOM%9+1))p get_ip.txt |bash > new_ip.txt

diff old_ip.txt new_ip.txt

if [ $? -ne 0 ];then
	cat new_ip.txt > old_ip.txt
	mail -s "XXX公司公网IP" 1@qq.com 2@qq.com 3@qq.com  < new_ip.txt	
fi

